<layout name="master"/>
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
    <li><a href="index.html"><i class="fa fa-home"></i>货品管理</a></li>
    <li class="active">货品列表</li>
</ul>
<div class="m-b-md">
    <h3 class="m-b-none">货品列表</h3>
</div>
<div class="row">
    <div class="col-sm-12">
        <section class="panel panel-default">
            <header class="panel-heading font-bold">货品列表</header>
            <div class="panel-body">
                <form class="form-horizontal" method="post" action="">
                    <table id="MyStretchGrid" class="table table-striped datagrid m-b-sm">
                        <thead>
                        <tr>
                            <th>编号</th>
                            <!--颜色  尺码  需要循环出来，不是写死-->
                            <volist name="temp" id="v">
                            <th>{$v['name']}</th>
                            </volist>
                            <th>库存</th>
                            <th>货号</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <volist name="oldData" id="vo">
                            <tr>
                                <td>{$vo['glid']}</td>
                                <volist name="vo['combine']" id="vv">
                                    <td>{$vv}</td>
                                </volist>
                                <td>{$vo['inventory']}</td>
                                <td>{$vo['number']}</td>
                                <td>
                                    <a href="{:u('GoodsList/edit',['glid'=>$vo['glid']])}"><i class="fa fa-pencil"></i></a>
                                    <a href="{:u('GoodsList/del',['glid'=>$vo['glid']])}"><i class="fa fa-times text-danger text"></i></a>
                                </td>
                            </tr>
                            </volist>
                            <tr>
                                <td>添加货品</td>
                                <volist name="temp" id="v">
                                <td>
                                    <select name="combine[]" class="form-control m-b">
                                        <option value="">请选择</option>
                                        <volist name="v['value']" id="vv">
                                        <option value="{$vv['gtid']}">{$vv['gtvalue']}</option>
                                        </volist>
                                    </select>
                                </td>
                              </volist>
                                <td>
                                    <input type="text" class="form-control" name="inventory">
                                </td>
                                <td>
                                    <input type="text" class="form-control" name="number">
                                </td>
                                <td></td>

                            </tr>
                        </tbody>
                    </table>
                    <div class="form-group">
                        <button type="submit" class="btn btn-twitter btn-block m-b-sm">提交</button>
                    </div>
                </form>
            </div>
        </section>
    </div>
</div>





